const userModel = require("../models/userModel")

class User {
    register(account, password, username, createAt, gender, imgUrl) {
        return userModel.register(account, password, username, createAt, gender, imgUrl);
    }
    login(account, password) {
        return userModel.login(account, password)
    }
    remove(id) {
        return userModel.remove(id)
    }
    items(page_num, page_size) {
        return userModel.items(page_num, page_size)
    }
    modify(username, gender, imgUrl, id) {
        return userModel.modify(username, gender, imgUrl, id)
    }
    search(keyword) {
        return userModel.search(keyword)
    }
    detail(id) {
        return userModel.detail(id)
    }
    mute(id, muteTime) {
        return userModel.mute(id, muteTime)
    }
    ban(id) {
        return userModel.ban(id)
    }
    unmute(id) {
        return userModel.unmute(id)
    }
    unban(id) {
        return userModel.unban(id)
    }
}



module.exports = User;